#ifndef VERTEX_ARRAY_H
#define VERTEX_ARRAY_H

class VertexArray
{
public:
    VertexArray()
    {    
        glGenVertexArrays(1, &arrayId);
    }
    
    VertexArray(GLuint id)
    {
        arrayId = id;
    }

    void Enable()
    {
        glBindVertexArray(arrayId);
    }

    void Disable()
    {
        glBindVertexArray(0);
    }

private:
    GLuint arrayId;    
};

#endif